home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1277 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  3.3 KB  |  91 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 40 && _root.range == true)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "Hey, that\'s a great idea.  I\'ll have a girlfriend in no time...  in JAIL!  ARE YOU NUTS?";
  8.       }
  9.       else if(_root.micon._currentframe == 41 && _root.range == true)
  10.       {
  11.          _root.next_dis1 = 2;
  12.          _root.next_txt1 = "I don\'t think I want to make Nugget cry.";
  13.       }
  14.       if(_root.micon._currentframe == 33 && _root.range == true)
  15.       {
  16.          _root.micon.gotoAndStop(1);
  17.          _root.txt_number = 3;
  18.          _root.next_dis3 = 4;
  19.          _root.di3 = 65;
  20.          _root.next_txt3 = "Thanks Hewitt.  I\'m full of energy now!  Ready to dance?";
  21.          _root.next_dis2 = 2;
  22.          _root.di2 = 66;
  23.          _root.next_txt2 = "Lets do this.";
  24.          _root.di1 = 67;
  25.       }
  26.       if(_root.micon._currentframe == 1 && _root.range == true)
  27.       {
  28.          _root.next_dis1 = 2;
  29.          _root.next_txt1 = "I donΓÇÖt think he would appreciate that too much.";
  30.       }
  31.       if(_root.micon._currentframe == 2)
  32.       {
  33.          _root.next_dis1 = 2;
  34.          _root.next_txt1 = "ThatΓÇÖs Nugget.  I had a class with him last year.";
  35.       }
  36.       if(_root.micon._currentframe == 4 && _root.range == true && _root.txt_number <= 1)
  37.       {
  38.          if(_root.talk1 == 0)
  39.          {
  40.             _root.talk1 = 1;
  41.             _root.txt_number = 5;
  42.             _root.next_dis5 = 4;
  43.             _root.di5 = 50;
  44.             _root.next_txt5 = "Hey, Hewitt.  Are you going to the dance tonight?";
  45.             _root.next_txt4 = "If only I can find a date...";
  46.             _root.di4 = 51;
  47.             _root.next_dis4 = 2;
  48.             _root.next_txt3 = "A little trouble with the ladies?";
  49.             _root.di3 = 52;
  50.             _root.next_dis3 = 4;
  51.             _root.next_txt2 = "ErrΓǪ  You could say that...";
  52.             _root.di2 = 53;
  53.             _root.next_dis2 = 2;
  54.             _root.next_txt1 = "Well good luck with that.  Come back if you need anything.";
  55.             _root.di1 = 54;
  56.             _root.next_dis1 = 4;
  57.          }
  58.          else if(_root.talk1 == 1 && (_root.talk9 < 2 && _root.even30 <= 1 || _root.talk9 == 2 && _root.even30 == 0))
  59.          {
  60.             _root.txt_number = 3;
  61.             _root.next_dis3 = 4;
  62.             _root.di3 = 55;
  63.             _root.next_txt3 = "How is the quest to find a date going?";
  64.             _root.next_txt2 = "You think ItΓÇÖs not too late to pretend IΓÇÖm sick today?";
  65.             _root.di2 = 56;
  66.             _root.next_dis2 = 2;
  67.             _root.next_txt1 = "That bad Huh?";
  68.             _root.di1 = 57;
  69.             _root.next_dis1 = 4;
  70.          }
  71.          else if(_root.talk1 == 1)
  72.          {
  73.             _root.talk1 = 2;
  74.             _root.txt_number = 2;
  75.             _root.next_txt2 = "Hey nugget, I heard that you\'re a pro dancer, do you think you can teach me to dance?";
  76.             _root.di2 = 58;
  77.             _root.next_dis2 = 2;
  78.             _root.next_txt1 = "Sorry Hewitt, I\'m way too tired right now!";
  79.             _root.di1 = 59;
  80.             _root.next_dis1 = 4;
  81.          }
  82.          else
  83.          {
  84.             _root.next_txt1 = "I cant talk now Hewitt, I have no energy left.";
  85.             _root.di1 = 60;
  86.             _root.next_dis1 = 4;
  87.          }
  88.       }
  89.    }
  90. }
  91.